﻿using CHS.ChengDu.Service;
using CHS.ChengDu.Service.Dto;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace Com.WebApiServe.Controllers
{
    /// <summary>
    /// 工伤医保控件
    /// </summary>
    [RoutePrefix("Api/SCGS")]
    public class SCGSController: ApiController
    {
        /// <summary>
        /// 接口初始化
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [Route("Init")]
        public SCGSOutput Init()
        {
            var yh = new SCGSService();
            return yh.Init();
        }

        /// <summary>
        /// 调用接口
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("Call")]
        [HttpPost]
        public SCGSOutput Call(SCGSInput input)
        {
            var yh = new SCGSService();
            return yh.Call(input);
        }
    }
}
